package rs.dalao.syc.index.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rs.dalao.syc.index.dao.persist.repository.IVaccineRepository;
import rs.dalao.syc.index.pojo.vo.HotDetailVO;
import rs.dalao.syc.index.pojo.vo.VacDetailsVO;
import rs.dalao.syc.index.pojo.vo.VaccineListVO;
import rs.dalao.syc.index.service.IVaccineService;

import java.util.List;

@Service
public class VaccineServiceImpl implements IVaccineService {

    @Autowired
    private IVaccineRepository vaccineRepository;
    @Override
    public List<VaccineListVO> getVaccineList(Integer type) {
        return vaccineRepository.getVaccineList(type);
    }

    @Override
    public List<VacDetailsVO> getVaccineDetail(Long articleId) {
        return vaccineRepository.getVaccineDetail(articleId);
    }

    @Override
    public List<HotDetailVO> selectVaccineHotDetail(){
        return vaccineRepository.selectVaccineHotDetail();
    }

}
